package com.eleven.trades.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.time.LocalDateTime;


/**
 * @author eleven
 */
@TableName("flow")
public class Flow {
    @TableId(value = "flow_id", type = IdType.AUTO)
    private Integer flowId;

    @TableField("in_id")
    private String inId;

    @TableField("out_id")
    private String outId;

    @TableField("flow_amount")
    private double flowAmount;

    @TableField("flow_status")
    private Integer flowStatus;

    @TableField("note")
    private String note;

    @TableField("start_time")
    private LocalDateTime startTime;

    @TableField("end_time")
    private LocalDateTime endTime;

    public Flow(Integer flowId, String inId, String outId, Integer flowAmount, Integer flowStatus, String note, LocalDateTime startTime, LocalDateTime endTime) {
        this.flowId = flowId;
        this.inId = inId;
        this.outId = outId;
        this.flowAmount = flowAmount;
        this.flowStatus = flowStatus;
        this.note = note;
        this.startTime = startTime;
        this.endTime = endTime;
    }

    public Flow() {
        super();
    }

    public Integer getFlowId() {
        return flowId;
    }

    public void setFlowId(Integer flowId) {
        this.flowId = flowId;
    }

    public String getInId() {
        return inId;
    }

    public void setInId(String inId) {
        this.inId = inId;
    }

    public String getOutId() {
        return outId;
    }

    public void setOutId(String outId) {
        this.outId = outId;
    }

    public double getFlowAmount() {
        return flowAmount;
    }

    public void setFlowAmount(double flowAmount) {
        this.flowAmount = flowAmount;
    }

    public Integer getFlowStatus() {
        return flowStatus;
    }

    public void setFlowStatus(Integer flowStatus) {
        this.flowStatus = flowStatus;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note == null ? null : note.trim();
    }

//    public String getStartTime() {
//        return DateUtil.format(this.startTime);
//    }

    public void setStartTime(LocalDateTime startTime) {
        this.startTime = startTime;
    }

//    public String getEndTime() {
//        return DateUtil.format(this.endTime);
//    }

    public void setEndTime(LocalDateTime endTime) {
        this.endTime = endTime;
    }

    public LocalDateTime getStartTime() {
        return startTime;
    }

    public LocalDateTime getEndTime() {
        return endTime;
    }
}
